package com.ruoyi.duty.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import javax.validation.constraints.NotNull;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 查岗记录对象 duty_check
 * 
 * @author yepanpan
 * @date 2025-05-08
 */
@Data
public class DutyCheck extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增长主键ID */
    private Long id;

    /** 区域 */
    @Excel(name = "区域")
    private String deptName;
    @NotNull
    private Long deptId;

    /** 值班人 */
    @Excel(name = "值班人")
    private String userName;
    @NotNull
    private Long userId;

    /** 班次 */
    @Excel(name = "班次")
    private String shiftName;
    @NotNull
    private Long shiftId;

    /** 日期 */
    @Excel(name = "日期")
    @NotNull
    private String dutyDay;

    /** 查岗时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "查岗时间", width = 30, dateFormat = "yyyy-MM-dd")
    @NotNull
    private Date checkTime;

    /** 响应时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "响应时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date answerTime;

    /** 是否响应 */
    @Excel(name = "是否响应", dictType="sys_yes_no", comboReadDict=true)
    private String status;


}
